package com.eastfair.venueservice.dao;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.core.toolkit.Constants;
import com.eastfair.boot.mapper.SuperMapper;
import com.eastfair.boot.request.PageParams;
import com.eastfair.venuebooking.entity.CustomerMain;
import com.eastfair.venueservice.dto.ServiceProviderDTO;
import com.eastfair.venueservice.entity.ServiceProvider;

import com.eastfair.venueservice.vo.ExhibitionServiceProviderVO;
import com.eastfair.venueservice.vo.ServiceProviderVO;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * <p>
 * Mapper 接口
 * 服务商信息表
 * </p>
 *
 * @author gj
 * @date 2022-07-13
 */
@Repository
public interface ServiceProviderMapper extends SuperMapper<ServiceProvider> {

    /**
     * 查询服务商列表.
     *
     * @param pageParam   the page params
     * @param queryWrapper the query wrapper
     * @return the page
     */
    IPage<ServiceProviderVO> listServiceProviderVOs(IPage<ServiceProvider> pageParam,
                                                    @Param(Constants.WRAPPER) QueryWrapper<ServiceProvider> queryWrapper);

    /**
     * 查询服务商列表.
     *
     * @param queryWrapper the query wrapper
     * @return the page
     */
    List<Long> queryServiceProviderVOList(@Param(Constants.WRAPPER) QueryWrapper<ServiceProvider> queryWrapper);

    /**
     * 查询展会未同步的所有展会服务商关系
     * @return
     */
    List<ExhibitionServiceProviderVO> queryNeedSyncExhibitionProvider();
}
